import { App } from 'vue'
export const withInstall = (main:any, extra?:any) => {
  main.install = (app:App) => {
    app.component(main.name || extra.name, main)
  }
  return main
}
